package com.briup.pts.mapper;

import com.briup.pts.entity.IssueRecord;
import com.briup.pts.entity.IssueRecordExample;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface IssueRecordMapper {
    @MapKey("month")
    List<Map<String, BigDecimal>> countSales();

    long countByExample(IssueRecordExample example);

    int deleteByExample(IssueRecordExample example);

    int deleteByPrimaryKey(Integer isrId);

    int insert(IssueRecord record);

    int insertSelective(IssueRecord record);

    List<IssueRecord> selectByExample(IssueRecordExample example);

    IssueRecord selectByPrimaryKey(Integer isrId);

    int updateByExampleSelective(@Param("record") IssueRecord record, @Param("example") IssueRecordExample example);

    int updateByExample(@Param("record") IssueRecord record, @Param("example") IssueRecordExample example);

    int updateByPrimaryKeySelective(IssueRecord record);

    int updateByPrimaryKey(IssueRecord record);
}